﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BLL
{
    public partial class Search
    {
        DAL.Search dalsearch = new DAL.Search();

        #region 获得搜索建议词
        /// <summary>
        /// 获得搜索建议词
        /// </summary>
        /// <param name="keyword"></param>
        /// <returns></returns>
        public List<MODEL.Search> getSuggestion(string keyword)
        {
            return dalsearch.getSuggestion(keyword);
        }
        #endregion

        #region 获得前三的热词
        /// <summary>
        /// 获得前三的热词
        /// </summary>
        /// <returns></returns>
        public List<MODEL.Search> getKeyWord()
        {
            return dalsearch.getKeyWord();
        }
        #endregion

        #region 插入热词
        /// <summary>
        /// 插入热词
        /// </summary>
        /// <param name="word"></param>
        /// <returns></returns>
        public bool addKeyWord(string word)
        {
            return dalsearch.addKeyWord(word);
        }
        #endregion
    }
}
